package com.bzg.transaction;

import com.bzg.transaction.config.AppConfig;
import com.bzg.transaction.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppMain {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		UserService userService = (UserService)annotationConfigApplicationContext.getBean("userService");
		System.out.println(userService.queryUser());
	}
}
